const express = require('express');
const router = express.Router();

router.get('/forCurrentUser', (req, res) => {
    const content = [];
    for(let i = 0; i < 40; i++) content.push({
        id: `${i + 1}`,
        marketDepartmentName: '国际',
        brandCode: 'string',
        brandName: 'string',
        dealerCode: 'string',
        dealerName: 'string',
        country: '中国',
        partInvoiceCode: 'partInvoiceCode',
        totalAmount: 100000,
        totalQuantity: 100,
        invoiceAmount: 100000,
        freight: 1000,
        insurance: 1000,
        totalDiscount: 10000,
        currency: 1,
        partShipNoticeStatus: 1,
        partShipOrderStatus: 1,
        createTime: '2019-10-08T07:29:54.423Z',
        shipmentType: 1,
        expressCompanyCode: 'expressCompanyCode',
        postDate: '2019-10-08T07:29:54.423Z',
        partSaleOrderCode: 'partSaleOrderCodepartSaleOrderCodepartSaleOrderCode',
        partShipmentCode: 'partShipmentCode',
        partShipmentStatus: 1,
        expectDepartedDate: '2019-10-08T07:29:54.423Z',
        actualDepartedDate: '2019-10-08T07:29:54.423Z',
        expectArrivalDate: '2019-10-08T07:29:54.423Z',
        actualArrivalDate: '2019-10-08T07:29:54.423Z',
        receiptTime: '2019-10-08T07:29:54.423Z',
        shortContainerCount: 1,
        standardContainerCount: 1,
        highContainerCount: 1,
        shippingCompanyAirline: 'shippingCompanyAirline',
        carrierName: 'carrierName',
        outboundDate: '2019-10-08T07:29:54.423Z',
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 40,
        }
    });
});
router.get('/:id', (req, res) => {
    const content = [];
    for(let i = 0; i < 10; i++) content.push({
        id: `${i + 1}`,
        partInvoiceCode: 'dayingID',
        partSaleOrderCode: 'partSaleOrderCode',
        partOrderTypeName: 'partOrderTypeName',
        submitTime: '2019-10-08T07:29:54.423Z',
        creditAuditedTime: '2019-10-08T07:29:54.423Z',
        partCode: 'string',
        partName: 'string',
        description: 'description',
        price: 1,
        quantity: 1,
        minPackSize: 1,
        totalAmount: 10,
        oldPartCode: 'stroldPartCodeng',
        palletCode: 'palletCode',
        perNetWeight: 11,
        netWeight: 22
    });
    res.json({
        message: '',
        payload: {
            content,
            totalElements: 10,
        }
    });
});
router.get('/export/forCurrentUser', (req, res) => {
    res.json({
        message: '导出'
    });
});
router.get('/export/forDetail', (req, res) => {
    res.json({
        message: '导出明细'
    });
});
module.exports = router;
